package com.hhkj.study.api.index.model.req;

import com.hhkj.study.admin.article.enums.BannerEnum;
import com.hhkj.study.admin.article.model.req.ArticleBannerReq;
import com.ruoyi.common.valid.emun.EnumValueCheck;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @Author luowu
 * @Date 2024/9/29 涵 21:20:39
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApiArticleBannerListReq extends ArticleBannerReq {

    @EnumValueCheck(message = "类型code错误", target = BannerEnum.class)
    @NotBlank(message = "所属类别code不能为空")
    @Override
    public String getCatalogCode() {
        return super.getCatalogCode();
    }
}
